	.text
	.align 4

	.globl main

main : 
	pushl	%ebp
	movl	%esp, %ebp
	pushl	%ebx
	pushl	%esi
	pushl	%edi
	subl	$28, %esp
	movl	8(%ebp), %eax
	cmpl	$0, %eax
	setg	%al
	movzbl	%al, %eax
	movl	%eax, -40(%ebp)
	movl	$0, -36(%ebp)
	movl	8(%ebp), %eax
	movl	%eax, -28(%ebp)
	movl	$0, -32(%ebp)
	cmpl	$0, -40(%ebp)
	jne	L..12
	jmp	L..13
L..12 : 
	movl	-28(%ebp), %eax
	subl	$1, %eax
	movl	%eax, -24(%ebp)
	movl	-32(%ebp), %eax
	addl	-24(%ebp), %eax
	movl	%eax, -20(%ebp)
	movl	-24(%ebp), %eax
	cmpl	$0, %eax
	setg	%al
	movzbl	%al, %eax
	movl	%eax, -16(%ebp)
	movl	-20(%ebp), %eax
	movl	%eax, -36(%ebp)
	movl	-24(%ebp), %eax
	movl	%eax, -28(%ebp)
	movl	-20(%ebp), %eax
	movl	%eax, -32(%ebp)
	cmpl	$0, -16(%ebp)
	jne	L..12
	jmp	L..13
L..13 : 
	jmp	L..10
L..10 : 
	movl	-36(%ebp), %eax
	addl	$28, %esp
	popl	%edi
	popl	%esi
	popl	%ebx
	movl	%ebp, %esp
	popl	%ebp
	ret



	.data
	.align 4

